<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html class="win-frame">
<head>
 <title>${name_china}管理-查看${name_china}</title>
 <%@include file="/common/head.jsp" %>
 <link href="<%=request.getContextPath()%>/static/plugin/zTree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet">
 <script src="<%=request.getContextPath()%>/static/plugin/zTree/js/jquery.ztree.all-3.5.min.js"></script>
</head>
<body class="iframe-page">
<div class="page-title-wrapper">
    <div class="page-title">
        <div class="page-title-text">
            <span>${name_china}管理</span>
            <span class="split"></span>
            <span>${name_china}详情</span>
        </div>
        <a id="goBack" class="btn-return distance-left" href="javascript:;" onclick="parent.refreshList('${org.code}');"><i class="icon icon-arrow-left"></i>返回上级</a>
    </div>
    <div class="page-title-border"></div>
</div>

<form id="form">
<div class="left-wrap">
   <h3>基本信息</h3>
    <table class="table-view">
        <!--  <tr>
	       <td class="td-title">排序</td>
	       <td><span name="reorder"></span></td>
        </tr> -->
        <tr>
	       <td class="td-title">目标</td>
	       <td><span name="taget"></span></td>
        </tr>
         <tr>
	       <td class="td-title">类型</td>
	       <td><span name="type"></span></td>
        </tr>
        
        <tr>
	       <td class="td-title">开始时间</td>
	       <td><span name="startTime"></span></td>
        </tr>
        
        <tr>
	       <td class="td-title">结束时间</td>
	       <td><span name="endTime"></span></td>
        </tr>
        
         <tr>
	       <td class="td-title">大纲</td>
	       <td><span name="content"></span></td>
        </tr>
         <tr>
	       <td class="td-title">工具</td>
	       <td><a id="tools"><span name="toolsUrl"></span></a></td>
        </tr>
        <tr>
	       <td class="td-title">文档</td>
	       <td><a id="doc"><span name="docUrl"></span></a></td>
        </tr>
        <tr>
	       <td class="td-title">视频</td>
	       <td><a id="video"><span name="videoUrl"></span></a></td>
        </tr>
        <tr>
	       <td class="td-title">源码</td>
	       <td><a id="resource"><span name="resourceUrl"></span></a></td>
        </tr>
         <tr>
	       <td class="td-title">备注</td>
	       <td><span name="note"></span></td>
        </tr>

    </table>
</div>   
</form>
<script>
   $(function(){
	   data = ${viewEdit};
	   $("#form").form().form("loadDataView",{
   		  data : data
   	   }); 
	   
	   var tools = $('span[name="toolsUrl"]').html();
	   $('#tools').attr("href",tools);
	   
	   var doc = $('span[name="docUrl"]').html();
	   $('#doc').attr("href",doc);
	   
	   var video = $('span[name="videoUrl"]').html();
	   $('#video').attr("href",video);
	   
	   var resource = $('span[name="resourceUrl"]').html();
	   $('#resource').attr("href",resource);
	   
	   $('#goBack').on('click', backHome);
   });
   
   function backHome() {
      window.location.href =  basePath + "${common_url}init";
   }
</script>
</body>
</html>